/** 注释
 * @Name formTypes;
 * @Author FiveXu
 * @Description formTypes
 * @Date 2021-07-02 14:29
 */

export const labelPositionArr = ['left', 'right', 'top']
export type LabelPosition = 'left' | 'right' | 'top'

// 验证
export interface RulesProps {
  message: string;
  trigger: string | string[];
  type?: 'String' | 'Array' | 'Boolean' | 'Number';
  required?: boolean;
  rules?: RegExp;
  min?: number;
  max?: number;

  validator? (val: string | number | string[], cb?: (val: string) => void): boolean;
}
